from bootstrap.application import create_app
from config.config import settings
import uvicorn

app = create_app()


@app.get("/")
async def root():
    return "welcome to fastapi autometer"


if __name__ == "__main__":
    with open('banner.txt',mode='r',encoding='utf-8') as f:
        for line in f.readlines():
            print(line.strip())
    uvicorn.run(app="main:app", host=settings.SERVER_HOST, port=settings.SERVER_PORT)
